package com.guigu.tms.commons.user.feign;

import com.guigu.tms.commons.user.entity.Member;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "tms-user",path = "user/member",contextId = "TUUM")
public interface UserFeignClient {
    @GetMapping("getMemberById/{id}")
    Member getMemberById(@PathVariable("id") String id);

    @PostMapping("createMember")
    Member createMember (@RequestBody Member member);
}
